package com.icinfo.cloud.provider.punish.api.client.common;

import com.icinfo.cloud.provider.punish.common.documentoperate.dto.StageDocCommonOperateSaveDto;
import com.icinfo.framework.common.web.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 描述：文书阶段公共操作客户端接口
 *
 * @author xiangyuyu
 * @date 2022/6/27 17:48
 */
@FeignClient(value = "${unified-punish-case-provider.namespace:}unified-punish-case-provider", contextId = "StageDocCommonOperateClient")
public interface StageDocCommonOperateClient {

    /**
     * 【V1.0.0】描述：保存文书信息通用接口
     *
     * @param saveDto {@link StageDocCommonOperateSaveDto}
     * @return {@link Result <String>} 保存结果
     * @author xiangyuyu
     * @date 2022-02-16 20:58
     */
    @PostMapping("/punish/stagedoc/common/saveDocInfo")
    @ApiOperation(value = "【V1.0.0】描述：保存文书信息通用接口", httpMethod = "POST")
    Result<String> saveDocInfo(@RequestBody @Validated StageDocCommonOperateSaveDto saveDto);
}
